import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/preventive_rectification_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/preventive_rectification_entity.g.dart';

@JsonSerializable()
class PreventiveRectificationEntity {
	late int id = 0;
	late String preventiveName = '';
	late int companyId = 0;
	late String companyName = '';
	late int findTime = 0;
	late int rectificationDeadline = 0;
	dynamic uploaderId;
	dynamic uploaderName;
	late int status = 0;
	late String rectificationRequire = '';
	late String source = '';
	late String problemDesc = '';
	late String fileUrl = '';
	dynamic acceptanceStatus;
	dynamic acceptanceDesc;
	dynamic acceptanceFileUrl;
	late int createTime = 0;
	dynamic rectificationPersonName;
	late List<dynamic> recordDOS = [];

	PreventiveRectificationEntity();

	factory PreventiveRectificationEntity.fromJson(Map<String, dynamic> json) => $PreventiveRectificationEntityFromJson(json);

	Map<String, dynamic> toJson() => $PreventiveRectificationEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}